import request from './request'

//用户登录
const loginApi = (data) => {
    return request.post({
        url: '/user/login',
        data
    })
}
//用户注册
const registerApi = (data) => {
    return request.post({
        url: '/user/register',
        data
    })
}
//退出登录
const logoutApi = (data) => {
    return request.post({
        url: '/user/logout',
        data

    })
}
//上传图片
const uploadImage = (data) => {
    return request.post({
        url: '/user/upload',
        data
    })
}

export default { loginApi, registerApi, logoutApi, uploadImage }
